package com.example.text.http

import com.example.text.base.BaseResponse
import com.example.text.ui.mall.model.GoodEntity
import com.example.text.ui.mall.model.AdInfoModel
import com.example.text.ui.mall.model.HomeGoodsCategory
import com.example.text.ui.mall.model.MallBanner
import com.example.text.ui.mall.model.MallGoods
import retrofit2.http.GET
import retrofit2.http.Path

/**
 * @author yaotianxue
 * @description
 * @date 2025/5/12
 */
interface ClubService {
    @GET("/mall/mallHome/cmallAdInfo")
    suspend fun cmallAdInfo(): BaseResponse<AdInfoModel>
//http://10.161.9.80:8886/mall/mallHome/cMallGroupList
    @GET("/mall/mallHome/cmallConfList")
    suspend fun getGoodsInfo(): BaseResponse<List<GoodEntity>>

//http://10.161.9.80:8886/mall/mallHome/cmallBannerInfo
    @GET("/mall/mallHome/cmallBannerInfo")
    suspend fun getBannerInfo(): BaseResponse<List<MallBanner>>

    //http://10.161.9.80:8886/mall/mallHome/cMallGroupList
    @GET("/mall/mallHome/cMallGroupList")
    suspend fun getGoods(): BaseResponse<List<HomeGoodsCategory>>

    //http://10.161.9.80:8886/mall/goodsDetail/mallGoodsInfoInfo/581731
    @GET("/mall/goodsDetail/mallGoodsInfoInfo/{goodsId}")
    suspend fun pointGoodsInfo(@Path("goodsId")goodsId:Long): BaseResponse<MallGoods>

}